<?php
	$options=array('type' => 'post','class' => 'form-horizontal',
    'inputDefaults' => array(
        'format' => array('before', 'label', 'between', 'input', 'error', 'after'),
        'div' => array('class' => 'control-group'),
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'after' => '</div>',
        'error' => array('attributes' => array('wrap' => 'span', 'class' => 'help-inline')),
    ));

$cakeDescription = __d('cake_dev', 'Moneyhunc|Administración');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
	<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
	<?php
		echo $this->Html->meta('icon');

		//echo $this->Html->css('cake.generic');
		echo $this->Html->css('bootstrap');
		echo $this->Html->css('bootstrap.min');
		echo $this->Html->css('metro-bootstrap');
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
		
	?>
</head>
<body>
	<div id="header" >
		<div class="navbar navbar-inverse " >
		  <div class="navbar-inner">
		    <!-- <a class="brand" href="/">MoneyHunch.com | Administración</a> -->
		    <?php echo $this->Html->link('MoneyHunch.com | Administración', '/',array('class'=>'brand'));?>
		    <!-- <ul class="nav"  data-toggle="collapse" data-target=".nav-collapse">
		      <li><?php echo $this->Html->link('Principal', array('controller'=>'home', 'action'=>'index'));?></li>
		      <li><?php echo $this->Html->link('Acciones', array('controller'=>'stocks', 'action'=>'index'));?></li>
		      <li><?php echo $this->Html->link('Newsletters', array('controller'=>'home', 'action'=>'newsletters'));?></li> -->
		    </ul>
		  </div>
		</div>
	</div>
	<div class="container">
		
		<div class="span6 offset2">
			<fieldset>
				<legend> Acceso Administración </legend>
				<?php echo $this->Session->flash('login_error'); ?>
				
				<?= $this->Form->create('Sisusers',$options);?>
				<?= $this->Form->input('email');?>
				<?= $this->Form->input('password');?>
				<?= $this->Form->end('Ingresar',array('class'=>'btn btn-inverse'));?>
			</fieldset>
				
		
		</div>
		<br>		
	</div>
	<div id="footer" class="span12">
			<?php echo $this->Html->link(
					$this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
					'http://www.cakephp.org/',
					array('target' => '_blank', 'escape' => false)
				);
			?>
	</div>
	<br>
	<div class='span12'>
		<?php echo $this->element('sql_dump'); ?>
	</div>
</body>
</html>
